POV-Ray : Newsgroups : povray.binaries.images : Makeshift Shelter : Re: Makeshift Shelter Server Time
9 Aug 2024 15:24:32 EDT (-0400)
  Re: Makeshift Shelter  
From: Maarten Boonen
Date: 27 Jan 2005 15:47:28
Message: <41f95360$1@news.povray.org>
Bryan Valencia schreef:
> This is 3 sides of a cube turned into a shelter on a very hot alien world.
> I had to use trial and error (because my math skills are lacking) to figure
> out how much to rotate and translate my box{-1,1} to make the cube sit
> correctly on the plane{y,0}  Can someone 'splain the math for me?

Hi,

Not really math, but this might help:

camera { location <5,1,8> look_at 0 }

light_source { 50 rgb 1 }

plane { y, 0 pigment { rgbt <1,1,1,.5> } }
plane { x, 0 pigment { rgbt <0,1,0,.5> } }
plane { z, 0 pigment { rgbt <0,0,1,.5> } }

difference
{
         box { <1,0,1>, <-1,2,-1> }
         box { <1,0,1>, <-1,2,-1> translate <.1,-.1,.1> }

         translate <1,0,1>
         rotate y*-45
         translate <0,0,-1>
         rotate x*45

         pigment { rgb <1,0,0> }
}


Greetings,

Maarten


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.